package com.mall.malladminbackend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@TableName("sys_menu")
@Data
public class Menu {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("perms")
    private String perm;
    private String title;
    private Integer parentId;
    private String url;
    private String name;
    private Integer type;
    private String icon;
    private Integer orderNum;
    private Boolean hidden;
    @TableField(exist = false)
    private String parentName;
    @TableField(exist = false)
    private List<Menu> children;
}
